/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author ThinkGem
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface ExceptionInfo {
  id?: string;
  isNewRecord?: boolean;
  createBy?: string;
  updateBy?: string;
  createDate?: string;
  updateDate?: string;
  status?: string;
  statusStr?: string;
  grade?: string;
  classCode?: string;
  studentId?: string;
  remarks?: string;
  tabType?: string;
}

// 异常信息列表数据
export const vstudentUpdateRecordListData = (params?: ExceptionInfo | any) =>
  defHttp.post<Page<ExceptionInfo>>({
    url: adminPath + '/vks/vstudentUpdateRecord/listData',
    params,
  });

// 重复账号确认列表数据
export const vstudentMergeRecordListData = (params?: ExceptionInfo | any) =>
  defHttp.post<Page<ExceptionInfo>>({
    url: adminPath + '/vks/vstudentMergeRecord/listDataMerge',
    params,
  });

// 更新记录状态（已处理和忽略）
export const vstudentUpdateRecordUpdate = (params?: ExceptionInfo | any) =>
  defHttp.post<any>({ url: adminPath + '/vks/vstudentUpdateRecord/update', params });

// 重复账号确认合并操作
export const vuserDisableNoPer = (params?: any) =>
  defHttp.post<any>({ url: adminPath + '/vks/vstudentMergeRecord/merge', params });
